home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1997 / MacHack 1997.toast / Presentations / Presentations ’96 / Sessions ’96 / AI and The Mac / Demos / TravSales.Think / MyIndividual.h < prev    next >
Encoding:
Text File  |  1996-06-22  |  789 b   |  42 lines  |  [TEXT/MPS ]

  1. //        TMyIndividual.h
  2. // Copyright © 1992 Emergent Behavior. All rights reserved.
  3.  
  4.  
  5. #ifndef _MYINDIVIDUAL_
  6. #define _MYINDIVIDUAL_
  7.  
  8. #ifndef _INDIVIDUAL_
  9.     #include "Individual.h"
  10. #endif
  11.  
  12. #ifndef _CITYMAP_
  13.     #include "CityMap.h"
  14. #endif
  15.  
  16. //----------------------------------------------------------------------------------
  17. class TMyIndividual : public TIndividual
  18. {
  19. public:
  20.           // Constructors
  21.                     TMyIndividual                ( TCityMap* cityMap );
  22.                     TMyIndividual                ( const TMyIndividual& sourceInd );
  23.     virtual            ~TMyIndividual                ( void );
  24.     
  25.  
  26.           // Overrides
  27.     virtual    void                CalcObjective    ( void );
  28.     virtual TSimulationUnit*    Clone            ( void );
  29.     virtual void                MakeGenes        ( void );
  30.     
  31.             TMyIndividual&        operator=        ( const TMyIndividual& sourceInd );
  32.  
  33. private:
  34.       TCityMap*     fCityMap;
  35. };
  36.  
  37.  
  38. #endif
  39.  
  40.  
  41.  
  42.